import { Map } from 'immutable';
import * as types from './constans';
const defaultState = Map({
    commentTotal: 0
})
const reducer = (state = defaultState, action) => {
    switch (action.type) {
        case types.CHANGE_COMMENT_TOTAL:
            console.log(action.total);
            return state.set('commentTotal', action.total);
        default:
            return state
    }
}
export default reducer